package com.amxing.spider.task.support.extend;

import com.amxing.spider.task.TaskCache;
import com.amxing.spider.task.support.BatchTask;
import com.amxing.spider.task.support.HttpTask;

/**
 * @auther amxing
 * @desc
 * @createTime 2018/10/22 23:15
 */
public abstract class HttpBatchTask extends BatchTask implements HttpTask {

    public HttpBatchTask(TaskCache taskCache) {
        super(taskCache);
    }

    @Override
    public String getUrl() {
        return String.valueOf(getTaskCache().get(HttpTask.DEFAULT_URL_KEY));
    }

}
